/**
 * 
 */
package com.google.code.rookery;

import com.google.code.rookery.converter.DooConverter;

/**
 * @author Xerox
 */
public interface ScoobyFactory {
  /**
   * Factory method that takes a dooby
   * @param dooby a dooby
   * @return a Scooby
   */
  @FactoryMethod
  Scooby createScooby(Dooby dooby);

  /**
   * Factory method that takes a doo
   * @param doo a doo
   * @return a Scooby
   */
  @FactoryMethod(converter=DooConverter.class)
  Scooby createScooby(Doo doo);
}
